import request from '@/utils/request'

// 切换经销商
export function changeCurrentCustomer(customerCode) {
  return request({
    methods: 'GET',
    url: `/app/v1/customerSelector/changeCurrentCustomer`,
    params: { customerCode },
    loading: false
  })
}
// 获取当前租户下所有经销商
export function getCurrentCustomerList() {
  return request({
    methods: 'GET',
    url: `/app/v1/customerSelector/currentCustomers`
  })
}
// 获取当前经销商
export function getCurrentCustomer() {
  return request({
    methods: 'GET',
    url: `/app/v1/customerSelector/getCurrentCustomer`,
    loading: false
  })
}
